package com.joysuch.wwyt.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author A
 * 2022-10-16
 */
@Data
@TableName("wwyt_cascade_config")
@ApiModel(value = "级联配置对象", description = "级联配置对象")
public class CascadeConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 业务类型id或父级ID
     */
    private Long parentId;
    /**
     * 显示
     */
    private String label;
    /**
     * 值
     */
    private String value;
    /**
     * 排序
     */
    private Integer orderVal;
    /**
     * 描述
     */
    private String description;
    /**
     * 组织机构代码
     */
    @TableField(value = "ORG_CODE", fill = FieldFill.INSERT_UPDATE)
    private String orgCode;
    /**
     * 租户
     */
    @TableField(value = "TENENT_ID", fill = FieldFill.INSERT_UPDATE)
    private Long tenentId;

}
